/*
 * @Description:
 * @Version: 1.0.0
 * @Autor: zhou
 * @Date: 2022-04-21 08:15:32
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2022-08-30 16:40:19
 */
import request from "@/utils/request";

// 重点企业=============================
// 企业列表
export function listEmphasisCompany(data) {
    return request({
        url: "/bigScreen-keyEnterprise/getPage",
        method: "post",
        data,
    });
}
// 员工信息
export function getIndustryGridPeople(data) {
    return request({
        url: "/bigScreen-keyEnterprise/getIndustryGridPeople",
        method: "post",
        data,
    });
}
// 员工人数
export function getPeopleNum(params) {
    return request({
        url: "/bigScreen-keyEnterprise/getPeopleNum/" + params,
        method: "get",
    });
}
// 详细企业信息
export function getIndustryGridDetail(params) {
    return request({
        url: "/bigScreen-keyEnterprise/getIndustryGridDetail/" + params,
        method: "get",
    });
}

// 网格员管理=============================
// 港区网格
export function listGridUser(data) {
    return request({
        url: "/bigScreen-gridMember/detection",
        method: "post",
        data,
    });
}
//重点人员 - 查询重点人员列表
export function listKeyPersonnelUser(data) {
    return request({
        url: "/bigScreen-keyPersonnel/getPage",
        method: "post",
        data,
    });
}
// 重点人员 - 重点人员信息
export function keyPersonnelInfo(params) {
    return request({
        url: "/bigScreen-keyPersonnel/keyPersonnelInfo/" + params.id,
        method: "get",
        params,
    });
}

//重点人员-查询重点人员详情里的检测记录
export function keyPersonnelRecord(data) {
    return request({
        url: "/bigScreen-keyPersonnel/keyPersonnelRecord",
        method: "post",
        data,
    });
}

//重点人员-查询重点人员未检测列表
export function listKeyPersonnelUnCheckPage(data) {
    return request({
        url: "/bigScreen-keyPersonnel/keyPersonnelUnCheckPage",
        method: "post",
        data,
    });
}

// 重点行业=============
export function getCompareResultPage(data) {
    return request({
        url: "/bigScreen-KeyIndustry/getCompareResultPage",
        method: "post",
        data,
    });
}
export function getDetectInfo(params) {
    return request({
        url: "/bigScreen-KeyIndustry/getDetectInfo",
        method: "post",
        params,
    });
}
export function getGridInfo(params) {
    return request({
        url: "/bigScreen-KeyIndustry/getGridInfo/" + params,
        method: "post",
    });
}
export function getKeyIndustry(params) {
    return request({
        url: "/bigScreen-KeyIndustry/getKeyIndustry/" + params,
        method: "post",
    });
}
export function getPeopleNumIncustry(params) {
    return request({
        url: "/bigScreen-KeyIndustry/getPeopleNum/" + params,
        method: "post",
    });
}

//重点企业企业列表
export function getKeyEnterprise(data) {
    return request({
        url: "/bigScreen-keyEnterprise/getPage",
        method: "post",
        data,
    });
}
// 检测对比/ 网格层级, 树结构
export function townsGrid(params) {
    return request({
        url: "/townsGrid/tree",
        method: "get",
        params,
    });
}
// 检测对比/ 行业网格层级, 树结构
export function industrysGrid(params) {
    return request({
        url: "/industrysGrid/tree",
        method: "get",
        params,
    });
}

// 5网格管理===================================================
//网格管理-港区网格
export function listBigScreenGridPage(data) {
    return request({
        url: "/bigScreen-grid/search",
        method: "post",
        data,
    });
}
//网格管理 - 核酸检测率排行
export function detectRatioRank(data) {
    return request({
        url: "/bigScreen-grid/detectRatioRank",
        method: "post",
        data,
    });
}
// 网格管理/网格信息
export function detailGridInfo(data) {
    return request({
        url: "/bigScreen-grid/getGridInfo",
        method: "post",
        data,
    });
}
// 网格管理/居民列表
export function detailPeoplePage(data) {
    return request({
        url: "/bigScreen-grid/getPeoplePage",
        method: "post",
        data,
    });
}
// 网格管理/检测信息
export function detailDetectInfo(params) {
    return request({
        url: "/bigScreen-grid/getDetectInfo",
        method: "get",
        params,
    });
}
// 网格管理/比对名单列表
export function detailCompareResultPage(data) {
    return request({
        url: "/bigScreen-grid/getCompareResultPage",
        method: "post",
        data,
    });
}

// 6 网格员管理===========================================
//网格员管理-核实完成率排行
export function listBigScreenGridMember(data) {
    return request({
        url: "/bigScreen-gridMember/getPage",
        method: "post",
        data,
    });
}

// 公共接口========================
// 列出所有核酸轮次
export function getAllRound(params) {
    return request({
        url: "/round/getAllRound",
        method: "get",
        params,
    });
}
